<template>
  <div id="tab-bar">
    <TabBarItem color="#fb7299" path="/home">
      <template v-slot:title>首页</template>
      <template v-slot:content
        ><span style="font-family: 'iconfont', serif">&#xe69b;</span></template
      >
    </TabBarItem>
    <TabBarItem color="#fb7299" path="/category">
      <template v-slot:title>分类</template>
      <template v-slot:content
        ><span style="font-family: 'iconfont', serif">&#xe6ec;</span></template
      >
    </TabBarItem>
    <TabBarItem color="#fb7299" path="/cart">
      <template v-slot:title>购物车</template>
      <template v-slot:content
        ><span style="font-family: 'iconfont', serif">&#xe6e6;</span></template
      >
    </TabBarItem>
    <TabBarItem color="#fb7299" path="/profile">
      <template v-slot:title>我的</template>
      <template v-slot:content
        ><span style="font-family: 'iconfont', serif">&#xe6a0;</span></template
      >
    </TabBarItem>
  </div>
</template>

<script>
import TabBarItem from "@/components/common/tabbar/TabBarItem";
export default {
  name: "TabBar",
  components: {
    TabBarItem,
  },
};
</script>

<style scoped>
#tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f5f5f5;
  height: 48px;
  display: flex;
  box-shadow: 0 -1px 2px rgba(216, 216, 216, 0.4);
  z-index: 10;
}
</style>
